package com.jintian.smart.kernel.switching.db;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlRootElement;
import lombok.Data;

import java.io.Serializable;

/**
 * 规则参数
 */
@Data
@XStreamAlias("parameter")
@XmlRootElement(name = "parameter")
@XmlAccessorType(XmlAccessType.FIELD)
public class RuleParameter implements Serializable {
    private static final long serialVersionUID = 1L;
    @XmlAttribute
    @XStreamAsAttribute
    private String name;
    @XmlAttribute
    @XStreamAsAttribute
    private String title;
    @XmlAttribute
    @XStreamAsAttribute
    private String calcExpr;
    @XStreamAsAttribute
    @XmlAttribute
    private boolean required;
}
